package leetcode.design;

public class Solution307 {

	public static void main(String[] args) {
		NumArray na = new NumArray(new int[] { 1, 3, 5 });
		int res = 0;
		res = na.sumRange(0, 2);
		System.out.println(res);
		na.update(1, 2);
		res = na.sumRange(0, 2);
		System.out.println(res);
	}

}
